package org.example.myleet.p496;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(new int[]{-1,3,-1}, solution.nextGreaterElement(new int[]{4,1,2}, new int[]{1,3,4,2})));
        Assert.isTrue(Assert.isPass(new int[]{-1,-1,-1}, solution.nextGreaterElement(new int[]{4,3,1}, new int[]{8,7,6,5,4,3,2,1})));
        Assert.isTrue(Assert.isPass(new int[]{3,-1}, solution.nextGreaterElement(new int[]{2,4}, new int[]{1,2,3,4})));
        Assert.isTrue(Assert.isPass(new int[]{-1}, solution.nextGreaterElement(new int[]{1}, new int[]{1})));
        Assert.isTrue(Assert.isPass(new int[]{9,9,9}, solution.nextGreaterElement(new int[]{8,7,4}, new int[]{8,7,6,5,4,9,3,2,1})));
        Assert.isTrue(Assert.isPass(new int[]{9,-1,9}, solution.nextGreaterElement(new int[]{8,3,4}, new int[]{8,7,6,5,4,9,3,2,1})));
    }
}
